home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ssssccccssssiiii____iiiiooooccccttttllll((((DDDD3333XXXX)))) ssssccccssssiiii____iiiiooooccccttttllll((((DDDD3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- scsi_ioctl - perform host adapter ioctl
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssccccssssiiii....hhhh>>>>
-
- iiiinnnntttt
- ((((****ssssccccssssiiii____iiiiooooccccttttllll))))(((( vvvveeeerrrrtttteeeexxxx____hhhhddddllll____tttt _c_t_l_r__v_h_d_l,,,,
- uuuuiiiinnnntttt _c_o_m_m_a_n_d,,,,
- ssssttttrrrruuuucccctttt ssssccccssssiiii____hhhhaaaa____oooopppp ****_o_p_e_r_a_n_d))));;;;
- The host adapter _s_c_s_i__i_o_c_t_l interface is used by user level
- administrative applications (with privileged access) to perform
- operations on a scsi bus, fibre channel loop, or directly to a host
- adapter.
-
- There is no kernel object called scsi_ioctl; rather, there is a pointer
- to each host adapter's scsi_ioctl function in the sci_ioctl field of the
- scsi_ctlr_info structure, which is attached to the vertex corresponding
- to the host adapter.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _c_t_l_r__v_h_d_l argument specifies the hwgraph vertex for the SCSI host
- adapter. The _c_o_m_m_a_n_d argument specifies what operation is requested.
- There is a list of these operations in /usr/include/sys/scsi.h, all of
- which have a name of the form SOP_*. See scsiha(7m) for additional
- information. The _o_p_e_r_a_n_d argument is a pointer to a scsi_ha_op
- structure, which is used to supply additional information to the
- _s_c_s_i__i_o_c_t_l function. Two adapter-specific ioctls have been defined:
- SOP_GETDATA and SOP_SENDDATA. With them an application and driver can
- perform activities beyond those defined by the other SOP_* ioctls.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _s_c_s_i__i_o_c_t_l returns 0 if there is no error. Otherwise, it returns a
- standard error number (see /usr/include/sys/errno.h).
-
- NNNNOOOOTTTTEEEESSSS
- _s_c_s_i__i_o_c_t_l is stored as a function pointer in the scsi_ctlr_info_t
- structure, which is associated with the scsi host adapter vertex in the
- hwgraph. The information structure in the scsi target vertex also has a
- pointer to the scsi_ctlr_info_t of the host adapter that the target is
- connected to. Given a _l_u_n__v_h_d_l (vertex handle of the device) the
- _s_c_s_i__a_l_l_o_c function can be called as follows:
-
- scsi_lun_info_t *scsi_lun_info;
- ...
- scsi_lun_info = scsi_lun_info_get(lun_vhdl);
- SLI_IOCTL(scsi_lun_info)(lun_vhdl,option,callback_function);
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ssssccccssssiiii____iiiiooooccccttttllll((((DDDD3333XXXX)))) ssssccccssssiiii____iiiiooooccccttttllll((((DDDD3333XXXX))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- comments in /usr/include/sys/scsi.h, hwgraph.intro(D4X), scsi_alloc(D3X),
- scsi_free(D3X), scsi_info(D3X), scsi_command(D3X), scsi_abort(D3X), SCSI
- chapter of the IRIX Device Driver Programmer's Guide.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-